<div class="clear"></div>
<ul class="book-list list-unstyled row">
<#list books as book>
    <#include "/book/book_item.ftl">
</#list>
</ul>
<script>
    $(document).ready(function(){
        $(".btn-tag.action").on("click", function(e){
            if($(e.target).find("input").length > 0){
                $(e.target).find("input").remove();
                return;
            }
            var $input = $("<input style='position: absolute; top: -1px; right: 40px; height: 25px; width: 300%;' type='text'>");
            $(e.target).append($input);
//            Pinion.tag($(e.target).data("target-clazz"), $(e.target).data("target-id"));
        });
    });
</script>